export function appListColumns() {
  return [
    {
      title: this.$t('module.launchApp.processTitle'),
      key: 'name',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('module.launchApp.taskName'),
      key: 'taskName',
      ellipsis: false,
      minWidth: 160
    },
    {
      title: this.$t('common.status'),
      key: 'status',
      minWidth: 65,
      render: (h, params) => {
        return h(
          'StatusButton',
          {
            props: {
              status: params.row.rev === 2
            }
          },
          params.row.status
        )
      }
    },
    {
      title: this.$t('module.launchApp.startTime'),
      key: 'startTime',
      minWidth: 140
    },
    {
      title: this.$t('module.launchApp.creator'),
      key: 'startUserId',
      minWidth: 80
    },
    {
      title: this.$t('module.launchApp.endTime'),
      key: 'endTime',
      minWidth: 140
    },
    {
      title: this.$t('common.operating'),
      align: 'center',
      fixed: 'right',
      width: 70,
      render: (h, params) => {
        return h('RowTools', {
          props: {
            data: [
              {
                type: 'icon',
                icon: 'ios-list-box-outline',
                text: this.$t('module.launchApp.openDetail'),
                handle: () => {
                  // this._launchProcess(params.row.id)
                  this._launchProcess(params.row.taskId)
                }
              }
            ]
          }
        })
      }
    }
  ]
}
